// 这个是新的index 代替老的 老的改名为index-old.js
import { createStore, combineReducers } from 'redux' // combine 合并联合
import userReducer from './user/index'
import orderReducer from './order/index'

// initState已经分散在各个模块中 不用再写了

const store = createStore(combineReducers({
    user: userReducer,
    order: orderReducer
}))

export default store